/**
 * 发票相关控件
 */
interface TcomponentItem {
  componentName: string; //控件的名称
  componentType: string; //控件的类型
  code: string; //控件的唯一code
  showFieldList: string[]; //该控件可修改的props字段
  icon: string; //控件的icon
  props: any; //对象 props的默认值
  type: string;
}

const invoiceControl: TcomponentItem[] = [
  {
    componentName: '发票类型',
    componentType: 'INVOICE_TYPE',
    code: 'INVOICE_TYPE',
    icon: 'icon-yuangong',
    showFieldList: ['placeholder'],
    props: {},
    type: '2',
  },
  {
    componentName: '发票税率',
    componentType: 'INVOICE_RATE',
    code: 'INVOICE_RATE',
    icon: 'icon-yuangong',
    showFieldList: ['placeholder'],
    props: {},
    type: '2',
  },
  {
    componentName: '单位抬头',
    componentType: 'COMPANY_TITLE',
    code: 'COMPANY_TITLE',
    icon: 'icon-yuangong',
    showFieldList: ['placeholder'],
    props: {},
    type: '2',
  },
  {
    componentName: '纳税人识别号',
    componentType: 'TAXPAYER_IDENTIFICATION_NUMBER',
    code: 'TAXPAYER_IDENTIFICATION_NUMBER',
    icon: 'icon-yuangong',
    showFieldList: ['placeholder'],
    props: {},
    type: '2',
  },
  {
    componentName: '开户行',
    componentType: 'ACCOUNT_BANK',
    code: 'ACCOUNT_BANK',
    icon: 'icon-yuangong',
    showFieldList: ['placeholder'],
    props: {},
    type: '2',
  },
  {
    componentName: '单位地址',
    componentType: 'UNIT_ADDRESS',
    code: 'UNIT_ADDRESS',
    icon: 'icon-yuangong',
    showFieldList: ['placeholder'],
    props: {},
    type: '2',
  },
  {
    componentName: '备注',
    componentType: 'INVOICE_REMARK',
    code: 'INVOICE_REMARK',
    icon: 'icon-yuangong',
    showFieldList: ['placeholder'],
    props: {},
    type: '2',
  },
  {
    componentName: '收款账户',
    componentType: 'RECEIVING_ACCOUNT',
    code: 'RECEIVING_ACCOUNT',
    icon: 'icon-yuangong',
    showFieldList: ['placeholder'],
    props: {},
    type: '2',
  },
  {
    componentName: '付款方式',
    componentType: 'PAYMENT_METHOD',
    code: 'PAYMENT_METHOD',
    icon: 'icon-yuangong',
    showFieldList: ['placeholder'],
    props: {},
    type: '2',
  },
  {
    componentName: '付款明细',
    componentType: 'PAYMENT_DETAILS',
    code: 'PAYMENT_DETAILS',
    icon: 'icon-yuangong',
    showFieldList: ['placeholder'],
    props: {},
    type: '2',
  },
  {
    componentName: '关联合同',
    componentType: 'CONTRACT_SELECT',
    code: 'CONTRACT_SELECT',
    icon: 'icon-yuangong',
    showFieldList: ['placeholder'],
    props: {},
    type: '2',
  },
];

export default invoiceControl;
